#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
import time
from multiprocessing import Process

def test(x):
    print("{} 开始".format(x))
    time.sleep(2)
    print("{} 结束".format(x))

if __name__ == '__main__':

    pro = Process(target=test, args=("子进程",))
    pro.start()     # 给操作系统发起一个创建子程序的信号
    print("主进程开始")
